import service from '@/utils/request'

// @Tags ProductStylesSize
// @Summary 创建款式资讯-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesSize true "创建款式资讯-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productStylesSize/createProductStylesSize [post]
export const createProductStylesSize = (data) => {
  return service({
    url: '/productStylesSize/createProductStylesSize',
    method: 'post',
    data
  })
}

// @Tags ProductStylesSize
// @Summary 删除款式资讯-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesSize true "删除款式资讯-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productStylesSize/deleteProductStylesSize [delete]
export const deleteProductStylesSize = (params) => {
  return service({
    url: '/productStylesSize/deleteProductStylesSize',
    method: 'delete',
    params
  })
}

// @Tags ProductStylesSize
// @Summary 批量删除款式资讯-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除款式资讯-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productStylesSize/deleteProductStylesSize [delete]
export const deleteProductStylesSizeByIds = (params) => {
  return service({
    url: '/productStylesSize/deleteProductStylesSizeByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductStylesSize
// @Summary 更新款式资讯-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesSize true "更新款式资讯-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productStylesSize/updateProductStylesSize [put]
export const updateProductStylesSize = (data) => {
  return service({
    url: '/productStylesSize/updateProductStylesSize',
    method: 'put',
    data
  })
}

// @Tags ProductStylesSize
// @Summary 用id查询款式资讯-尺码
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductStylesSize true "用id查询款式资讯-尺码"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productStylesSize/findProductStylesSize [get]
export const findProductStylesSize = (params) => {
  return service({
    url: '/productStylesSize/findProductStylesSize',
    method: 'get',
    params
  })
}

// @Tags ProductStylesSize
// @Summary 分页获取款式资讯-尺码列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取款式资讯-尺码列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productStylesSize/getProductStylesSizeList [get]
export const getProductStylesSizeList = (params) => {
  return service({
    url: '/productStylesSize/getProductStylesSizeList',
    method: 'get',
    params
  })
}
